import request from '@/utils/request'

// 查询虾皮分类信息列表
export function listExchangeRate(query) {
  return request({
    url: '/h2-exchange-rate/pageList',
    method: 'post',
    data: query
  })
}

// 查询虾皮分类信息详细
export function getExchangeRate(id) {
  return request({
    url: `/h2-exchange-rate/getById/${id}`,
    method: 'post'
  })
}

// 新增虾皮分类信息
export function addExchangeRate(data) {
  return request({
    url: '/h2-exchange-rate/add',
    method: 'post',
    data: data
  })
}

// 修改虾皮分类信息
export function updateExchangeRate(data) {
  return request({
    url: '/h2-exchange-rate/put',
    method: 'post',
    data: data
  })
}

// 删除虾皮分类信息
export function delExchangeRate(id) {
  return request({
    url: `/h2-exchange-rate/del/${id}`,
    method: 'delete'
  })
}
